package cmsoa.util.tos;

import cmsoa.util.ToImp;

import java.sql.Timestamp;
import java.util.Date;


public class ToTimestamp implements ToImp {

	@Override
	public Long parse(Object obj) {
		return ((Timestamp)obj).getTime();
	}

	@Override
	public Date to(Object obj) {
		return new Timestamp((Long)obj);
	}

}
